def super(a):
    if a==1:
        print("不存在该地域")
def calculate_shipping_fee(region, weight):
    if weight <= 0 or region < 0 or region > 4:
        return super(1)

    base_weight = 1.0
    additional_weight = max(0, weight - base_weight)


    if additional_weight%1 != 0:


        additional_weight = int((additional_weight + 0.9) // 1)


    if region == 0:


        fee = 10.0 + additional_weight * 3.0


    elif region == 1:


        fee = 10.0 + additional_weight * 4.0


    else:
        base_fee = 15.0


        if region == 2:


            additional_cost = 5.0



        elif region == 3:



            additional_cost = 6.5



        else:


            additional_cost = 10.0

        fee = base_fee + additional_weight * additional_cost

    return round(fee, 2)


region = int(input("请输入目的区域编码（0-4）："))


weight = float(input("请输入邮件重量（千克）："))


shipping_fee = calculate_shipping_fee(region, weight)


print("运费为：", shipping_fee, "元")